<template>
	<view class="black">
		<image :src="cover" class="cover" mode="widthFix" @longpress="operator"></image>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				cover:""
			}
		},
		onLoad(params) {
			var cover = params.cover;
			this.cover = cover;

			// 通过api修改导航栏的属性
			uni.setNavigationBarColor({
				frontColor: "#ffffff",
				backgroundColor: "#000000"
			});
		},
		methods: {

		}
	}
</script>

<style>
	.black {
		background-color: #000000;
		width: 100%;
		height: 100%;

		display: flex;
		flex-direction: column;
		justify-content: center;
		position: fixed;
	}

	.cover {
		/* 水平居中 */
		align-self: center;
	}
</style>
